package com.saihai.jiankang.HrmCity.controller;

import java.util.List;
import javax.servlet.http.HttpServletResponse;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.saihai.common.annotation.Log;
import com.saihai.common.core.controller.BaseController;
import com.saihai.common.core.domain.AjaxResult;
import com.saihai.common.enums.BusinessType;
import com.saihai.jiankang.HrmCity.domain.HrmCity;
import com.saihai.jiankang.HrmCity.service.IHrmCityService;
import com.saihai.common.utils.poi.ExcelUtil;
import com.saihai.common.core.page.TableDataInfo;

/**
 * 城市Controller
 * 
 * @author ruoyi
 * @date 2024-07-12
 */
@RestController
@RequestMapping("/jiankang/HrmCity")
public class HrmCityController extends BaseController
{
    @Autowired
    private IHrmCityService hrmCityService;

    /**
     * 查询城市列表
     */
    @GetMapping("/list")
    public TableDataInfo list(HrmCity hrmCity)
    {
        List<HrmCity> list = hrmCityService.selectHrmCityList(hrmCity);
        return getDataTable(list);
    }

    /**
     * 获取城市详细信息
     */
    @GetMapping(value = "/{id}")
    public AjaxResult getInfo(@PathVariable("id") Long id)
    {
        return success(hrmCityService.selectHrmCityById(id));
    }


}
